import { createRouter, createWebHistory } from 'vue-router'
const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'login',
      component: ()=>import('../views/userView/index.vue')
    },
    {
      path: '/sign',
      name: 'sign',
      component: ()=>import('../views/sign/index.vue')
    },
    {
      path: '/changepw',
      name: 'changepw',
      component: ()=>import('../views/changepw/index.vue')
    },
    {
      path: '/user',
      name: 'user',
      component: ()=>import('../views/userView/index.vue')
    },
    {
      path: '/traffic',
      name: 'traffic',
      component: ()=>import('../views/trafficView/index.vue')
    },
    {
      path: '/admin',
      name: 'admin',
      component: ()=>import('../views/adminView/index.vue')
    }
  ]
})

export default router
